package exer1;


public class 游戏角色 {
    public static void main(String[] args) {

        try {
            //Person person1 = new Person("小虎",832);
            Person person1 = new Person("小虎", -832);
            System.out.println(person1);
        }catch(NoLifeValueException e){
            System.out.println(e.getMessage());
        }

        Person person2 = new Person();
        person2.setName("小明");
        person2.setLifeValue(-231);
    }
}
